<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<base href="<%=basePath%>">
	<title></title>
	<link href="background/css/css.css" rel="stylesheet" type="text/css" />
	<script src="background/js/back.js" type="text/javascript"></script>
</head>

<body>
<form id="myform" name="myform" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="background/images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1">研究项目列表</span></td>
              </tr>
            </table></td>
            <td><div align="right">
	            <span class="STYLE1">
	            	<img src="background/images/del.gif" width="10" height="10" />
					<a href='javascript:delRows("deleteProject.action");' class="STYLE1">删除</a>&nbsp;&nbsp;
				</span></div>
			</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="1px" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"  id="tbmain">
      <tr>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE10">
	        <div align="center">
	        	<input type="checkbox" name="checkAll" id="checkAll" onclick='doCheck();' />
	        </div>
        </td>
        <td width="20%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">项目编号</span></div></td>
        <td width="35%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">项目名称</span></div></td>
        <td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">项目来源</span></div></td>
        <td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">负责人</span></div></td>
        <td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">基本操作</span></div></td>
      </tr>
      <s:iterator value="projectBean.list">
      <tr>
        <td height="20" align="center">
          <input type="checkbox" name="nos" id="nos" value='<s:property value='pno' />' />
        </td>
        <td height="20" class="STYLE19" align="center"><s:property value="pcode" /></td>
        <td height="20" class="STYLE19" align="center"><s:property value="pname" /></td>
        <td height="20" class="STYLE19" align="center"><s:property value="psources" /></td>
        <td height="20" class="STYLE19" align="center"><s:property value="pprincipal" /></td>
        <td height="20" align="center" class="STYLE21">
        	<a href="editProject.action?id=<s:property value='pno' />">编辑</a>|
        	<a href='javascript:doDel("deleteProject.action?no=<s:property value='pno' />");'>删除</a>
        </td>
      </tr>
      </s:iterator>
    </table></td>
  </tr>
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="33%"><div align="left">
        	<span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;
        		共有<s:property value="projectBean.allRow"/>条记录，
        		当前第<s:property value="projectBean.currentPage"/>页，
        		共<s:property value="projectBean.totalGroup"/>页</span></div></td>
        <td width="67%"><table width="150" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td width="40" class="STYLE22">
	            <div align="center">
	            	<a href="backQueryProjects.action?page=<s:property value='projectBean.currentPage'/>&param=forward&flag=Y">上一页</a>
	            </div>
            </td>
            <td width="40" class="STYLE22">
	            <div align="center">
	            	<a href="backQueryProjects.action?page=<s:property value='projectBean.currentPage'/>&param=backward&flag=Y">下一页</a>
	            </div>
            </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table></form>
</body>
</html>